from nodetypes.formats.mml.Events import EventHandler

from Ft.Server.Server import FtServerServerException
from Ft.Server.Server import Error as ServerError


class EventHandler(EventHandler):
    
    def redirectToUserPreferences(self, context):
        raise FtServerServerException(
            ServerError.NOT_SUPPORTED,
            reason="Unknown action and/or method: (%s, %s)" %
            (context.action, context.method)
        )